<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>展示用户信息</title>
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
		<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
		<link href="<%=basePath%>css/jquery.validate.css" rel="stylesheet"/>
		<script type="text/javascript">
	$(function(){
		
		$("#updateForm").validate({
					rules:{
						"user.userName":{
							required:true
						},
						"user.trueName":{
							required:true
						},
						"user.password":{
							required:true
						},
						"repassword":{
							required:true
						},
						"user.idCard":{
							required:true
						},
						"user.tel":{
							required:true
						},
						"user.email":{
							required:true
						}
					}
				});
	}) ;
</script>
		
		</head>

	<body bgcolor="#D6DFF7">
		<table width="100%" border="1" align="center" cellpadding="1"
			cellspacing="0" class="TABLELIST">
			
			<tr>
				<td align="center">
					<form action="UserAction!updateUserInfo" method="post" name="updateForm" id="updateForm">
						<table width="80%" border="0" cellpadding="1" cellspacing="0"
							class="TABLELIST">
							<tr>
								<td colspan="2" align="center" style="font-size: 12pt;background-color: #799AE1" FILTER:shadow(color=black);face:新宋体   height="30">
									<font color="#874B46" size="4pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;个人信息</font>
								</td>
							</tr>
							<tr>
								<td width="42%" align="right">
								<span><font size="3" color="red">* </font>
									用&nbsp;户&nbsp;名：&nbsp;&nbsp;&nbsp;
								</td>
								<td height="50" width="58%" align="left">
									<input name="user.userName" id="user.userName" type="text" style="width:200px; height:26px;" 
										size="20" value="<s:property value="user.userName" />"  readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									真实姓名：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="user.trueName" id="user_trueName" type="text" style="width:200px; height:26px;"
										size="20"   value="<s:property value="user.trueName" />" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									<font size="3" color="red">* </font>
									身份证号：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="user.idCard" id="user_idCard" type="text" style="width:200px; height:26px;"
										size="20"  value="<s:property value="user.idCard"  />" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
								<span><font size="3" color="red">* </font>
									密&nbsp;&nbsp;&nbsp;&nbsp;码：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="user.password" id="user_password" type="password" style="width:200px; height:26px;"
										size="21" value="<s:property value="user.password" />" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
								<span><font size="3" color="red">* </font>
									确认密码：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="repassword" id="repassword" type="password" style="width:200px; height:26px;"
										size="21" value="<s:property value="user.password" />" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									性&nbsp;&nbsp;&nbsp;&nbsp;别：&nbsp;&nbsp;&nbsp;
								</td>
								<td height="50" align="left">
									<input type="radio" name="user.sex" id="user_sex" value="男" checked="checked" />
									男
									<input type="radio" name="user.sex" id="user_sex" value="女" />
									女
								</td>
							</tr>
							<br>
							<tr>
								<td colspan="2" align="center" style="font-size: 12pt;background-color: #799AE1" FILTER:shadow(color=black);face:新宋体  height="30" >
									<font color="#874B46" size="4pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系信息</font>
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									联系电话：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="user.tel" id="user_tel" type="text" size="20" style="width:200px; height:26px;"
										 value="<s:property value="user.tel" />" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									联系地址：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="user.address" id="user_address" type="text" style="width:200px; height:26px;"
										size="20" value="<s:property value="user.address" />" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
								<span><font size="3" color="red">* </font>
									电子邮箱：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="user.email" id="user_email" type="text" size="20" style="width:200px; height:26px;"
										 value="<s:property value="user.email" />" />
								</td>
							</tr>
							
							<tr>
								<td width="42%" align="right">
								</td>
								<td align="left">
									<input type="submit" value="更新" style="width: 60" />
								</td>
							</tr>
							
						</table>
					</form>
				</td>
			</tr>
		</table>
	</body>

</html>
